package server.mapper;

import java.util.List;

/**
 * @author zyy
 * @description 主机实体
 */
public class Host {

    /**
     * 主机名称
     */
    private String name;
    /**
     * 应用部署目录
     */
    private String appBase;

    /**
     * 上线文应用对象集合
     */
    private List<Context> contexts;

    public Host() {
    }

    public Host(String name, String appBase, List<Context> contexts) {
        this.name = name;
        this.appBase = appBase;
        this.contexts = contexts;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAppBase() {
        return appBase;
    }

    public void setAppBase(String appBase) {
        this.appBase = appBase;
    }

    public List<Context> getContexts() {
        return contexts;
    }

    public void setContexts(List<Context> contexts) {
        this.contexts = contexts;
    }
}
